
<!DOCTYPE html>
<html>
<head>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<script src="./source/modules/quickleaflet/template/mobile/script/jquery-2.0.3.min.js"></script>
<link rel="stylesheet" type="text/css" href="./source/modules/quickleaflet/template/mobile/style/Mobile.css">
<title>申请成为合伙人</title>
<meta id="viewport" name="viewport" content="width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
<style>
  #wrap > header{width:100%; height:70px; display:block;background:url({php echo $_W['attachurl'] . $this->module['config']['register-bg']}) center top no-repeat; color:#fff; text-align:center; font-size:25px; padding-top:110px;}
#wrap > section{ padding-top:20px;}
.table-container{width:300px; margin:auto; display:block;}
.table-container td{ padding:4px 0; line-height:40px; vertical-align:top;}
.table-container table tr > td:first-child{ text-align:right; font-size:13px; color:#c4b7a6}
.table-container table tr > td > span{ width:50%; display:block; float:left; }
.table-container table tr > td > span:first-child{ padding-right:3%; width:47%;}
.table-container table tr > td > span > *{ float:left; width:100%; padding:0;}
#wrap > footer{ width:100%; height:8px;  background:#555052; display:block; margin-top:60px;}
.gray{color:#929292;}
input{
  margin:0px;
  padding:0px;
}
input.mybtn{
    height: 45px;
    line-height: 45px;
    text-align: center;
    color: #fff;
    font-size: 16px;
    display: block;
    margin: 15px 6px;
    text-decoration: none;
    background: -moz-linear-gradient( bottom, #ADADAD,#C2BDBF,#DFDDDD);
    background: -o-linear-gradient(bottom, #7e002f,#ad0040,#d1014d);
    background: -webkit-linear-gradient(bottom, #ADADAD,#C2BDBF,#DFDDDD);
    -o-border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
  }

</style>
</head>
<body>
<div id="wrap">
  <header>申请加入合伙人</header>
    <section id="main">
    <form id="form"  action="" method="post" onsubmit="return check(this)">
			<input type="hidden" name="token" value="{$_W['token']}" />
      <input name="act" type="hidden"  value="module" />
      <input name="name" type="hidden"   value="quickleaflet" />
      <input name="do" type="hidden"  value="register" />
      <input name="weid" type="hidden"  value="{$_W['weid']}" />
      <div class="table-container">
        <table width="300">
                <tr>
                    <td width="80">姓名：</td>
                    <td width="220"><input name="realname" value="{$profile['realname']}" /></td>
                </tr>
                <tr>
                    <td>手机号码：</td>
                    <td><input id="phone" name="mobile" value="{$profile['mobile']}" /></td>
                </tr>
                <tr>
                    <td>住址：</td>
                    <td><input name="address" /></td>
                </tr>
                <tr>
                    <td style=" line-height:25px;">备注：<br>
          （选填）</td>
                    <td><textarea name="memo" class="gray" style="font-size:13px;">请输入对您成为合伙人有帮助的备注内容，例如:我是房屋中介</textarea>
</td>
                </tr>
            </table>
      </div>
      <input name="submit" type="submit" class="mybtn" value="提交" />
        </form>
    </section>
    <footer></footer>
</div>
</body>

<script>

function getPageWidth(){
  return $("#wrap").width();  
}

</script>
</html>



<script>

    function check(form) {
        if(!$("input[name='realname']").val()){
            alert('请填写姓名');
            return false;
        }
        if(!$("input[name='mobile']").val()){
            alert('请填写手机');
            return false;
        }
        if(!$("input[name='address']").val()){
            alert('请填写地址');
            return false;
        }
        $('#form').submit();
        return true;
    };

$(function(){

    function onBridgeReady(){
        WeixinJSBridge.call('hideOptionMenu');
    }

    if (typeof WeixinJSBridge == "undefined"){
        if( document.addEventListener ){
            document.addEventListener('WeixinJSBridgeReady', onBridgeReady, false);
        }else if (document.attachEvent){
            document.attachEvent('WeixinJSBridgeReady', onBridgeReady); 
            document.attachEvent('onWeixinJSBridgeReady', onBridgeReady);
        }
    }else{
        onBridgeReady();
    }
});
</script>

<script>
var firstFocus = true;

$("textarea").focus(function(e) {
    if(firstFocus){
    $(this).val("");
    firstFocus = false;
    $(this).removeClass("gray");
  }
});
</script>
